let a = 1;
let b = 1;
let c = '1';

equalCompare();
squareMethod();

/**
 * 功能:
 *      验证js的等值判断.
 * 输出:
 *      true
 *      true
 *      true
 *      false
 *      false
 * 说明:
 *      1. ===是等值等型判断, 也就是说两个变量的值和类型全部相等才会为true, 反之为false.
 *      2. !==判断的是不等值或不等型.
 *      3. ==是等值判断, 会忽略类型信息.
 */
function equalCompare() {
    console.log(a == b);
    console.log(a == c);
    console.log(b == c);
    console.log(a === c);
    console.log(b === c);
}

/**
 * 功能:
 *      验证平方运算符.
 * 输出:
 *      8
 * 说明:
 *      1. 其实2 ** 3 就是二的三次方.
 */
function squareMethod() {
    console.log(2 ** 3);
}